package com.cis467.mrball;

//temporary until figure out how to do calibration

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
	
	public class Calibrate extends Activity{
	//public class Calibrate extends Activity implements SensorEventListener {

		//double x,y,z;
		//double xOffset, yOffset, zOffset;
		
		//private SensorManager sm;
		
		@Override
		public void onCreate(Bundle savedInstanceState) {
		    super.onCreate(savedInstanceState);
		    setContentView(R.layout.calibratelayout);
		    
//		    Button calibrateBtn = (Button) findViewById(R.id.calButton);
		    
//		    List<Sensor> sensorList = sm.getSensorList(Sensor.TYPE_ACCELEROMETER);
//			if (sensorList.size() > 0) {
//				sm.registerListener(this, 
//						sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
//						SensorManager.SENSOR_DELAY_UI);
//			}
//			else {
//				//no sensor
//			}
		}
		    
		//calibrates orientation dependent on user position			
		public void setCalibrateOffsets(View v) {
			//xOffset = x;
			//yOffset = y;
			//zOffset = z;
	    }


//		public void onAccuracyChanged(Sensor arg0, int arg1) {
//			// TODO Auto-generated method stub
//			
//		}
//
//		public void onSensorChanged(SensorEvent event) {
//			// get accelerometer values
//			x = event.values[0];
//            y = event.values[1];
//            z = event.values[2];
//		}
	}
